package com.saturday.consumer;

import com.saturday.consumer.config.MyRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author :Lx
 * @Date :2021/1/22 0022 20:28
 * @Description：配置ribbon的策略
 *   name：设置应用的名称
 *   configuration：设置负载均衡策略
 */
@SpringBootApplication
@EnableEurekaClient
@RibbonClient(name = "eureka-provider",configuration = MyRule.class)
public class ConsumerApp {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerApp.class,args);
    }
}
